package com.newtouch.bxzs.business.message.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 广告的传入参数VO类
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/18 14:32</td>
 * <td>liman</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@ApiModel("广告新增或修改VO类")
public class ModifyAdvertisementVO implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 3995445139711344798L;

    @ApiModelProperty(value = "主键UUID")
    private String advertisementId;

    @ApiModelProperty(value = "广告名称", required = true)
    private String advertisementName;

    @ApiModelProperty(value = "广告类型", required = true)
    private String advertisementType;

    @ApiModelProperty(value = "跳转链接")
    private String advertisementUrl;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty(value = "撤销时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date revokeTime;

    @ApiModelProperty(value = "按钮类型（1：暂存，2：发布，3：撤销）", required = true)
    private String buttonType;

}
